package cn.handong.tool.设计模式.工厂模式.抽象工厂模式;

/**
 *实现工厂类，制定特定功能的工厂
 *
 */
 public class ShapeFactory extends AbstractFactory {
     
    @Override
    public Shape getShape(String shapeType){
       if(shapeType == null){
          return null;
       }        
       if(shapeType.equalsIgnoreCase("CIRCLE")){
//          return new Circle();
       } else if(shapeType.equalsIgnoreCase("RECTANGLE")){
          return new Rectangle();
       } else if(shapeType.equalsIgnoreCase("SQUARE")){
          return new Square();
       }
       return null;
    }
    
    @Override
    public Color getColor(String color) {
       return null;
    }
 }